#include<iostream>
#include<algorithm>
#include<iomanip>
using namespace std;
int main() {
	int n;
	int sum = 0, product = 1, smallest = 999999999, largest = 0;
	int i ;
	for ( i = 1;; i++) {
		cin >> n;
		if (n<0) { break; }
		sum += n;
		largest = max(largest, n);
		smallest = min(smallest, n);
		product *= n;
	}
	cout << "Sum is " << sum << endl;
	cout << "Average is " <<fixed<<setprecision(1)<< (double)sum / (i - 1) << endl;
	cout << "Product is " << product << endl;
	cout << "Smallest is " << smallest << endl;
	cout << "Largest is " << largest << endl;
	return 0;
}
